import request from '@/utils/request'

const API_NAME = '/admin/edu/subjects'

export default {
  // 获取科目树形列表
  getTreeList() {
    return request({
      url: `${API_NAME}/`,
      method: 'get'
    })
  },
  // 获取二级科目数量
  count() {
    return request({
      url: `${API_NAME}/count`,
      method: 'get'
    })
  },
  // 获取科目饼状图数据
  chart() {
    return request({
      url: `${API_NAME}/chart`,
      method: 'get'
    })
  }
}
